<link rel="import" href="head.html?__inline">
<div class="head">
    <div class="container clearfix">
        <img src="images/logo.png" alt=""/><span>河北省安全科技技术中心在线培训系统</span>
        <ul>
            <li><a href="/index.html" class="active">首页</a></li>
            <li><a href="/training-plan.html">培训计划</a></li>
            <li><a href="/complete-plan.html">个人中心</a></li>
            <li><a href="/teacher-resources.html">师资管理</a></li>
            <li><a href="/novice-help.html">帮助中心</a></li>
        </ul>
    </div>
</div>
    <!--head---end-->
    <div class="content">
        <div class="container">
            <div class="first-line"><a href="/index.html"><span>首页</span></a><img src="images/point.png" alt=""><span>最新活动</span></div>
            <div class="new-active clearfix" ms-controller="noticesByType">

                <ul>
                <li class="new-head">最新活动</li>
                    <li ms-for="el in @data.rows"><img src="images/classify.png" alt=""><a href="" ms-html="el.content" class="bgc" target="_blank"></a><span>{{@strTime(el.endTime)}}</span></li>
                 <!--<li><img src="images/classify.png" alt=""><a href="/latest-activities-details.html" class="bgc" target="_blank">最新安全法由人大常委会拟定,今天发布。</a><span>2016-08-03</span></li>
                 <li><img src="images/classify.png" alt=""><a href="/latest-activities-details.html" class="bgc" target="_blank">最新安全法由人大常委会拟定,今天发布。</a><span>2016-08-03</span></li>
                 <li><img src="images/classify.png" alt=""><a href="/latest-activities-details.html" class="bgc" target="_blank">最新安全法由人大常委会拟定,今天发布。</a><span>2016-08-03</span></li>
                 <li><img src="images/classify.png" alt=""><a href="/latest-activities-details.html" class="bgc" target="_blank">最新安全法由人大常委会拟定,今天发布。</a><span>2016-08-03</span></li>
                 <li><img src="images/classify.png" alt=""><a href="/latest-activities-details.html" class="bgc" target="_blank">最新安全法由人大常委会拟定,今天发布。</a><span>2016-08-03</span></li>
                 <li><img src="images/classify.png" alt=""><a href="/latest-activities-details.html" class="bgc" target="_blank">最新安全法由人大常委会拟定,今天发布。</a><span>2016-08-03</span></li>
                 <li><img src="images/classify.png" alt=""><a href="/latest-activities-details.html" class="bgc" target="_blank">最新安全法由人大常委会拟定,今天发布。</a><span>2016-08-03</span></li>
                 <li><img src="images/classify.png" alt=""><a href="/latest-activities-details.html" class="bgc" target="_blank">最新安全法由人大常委会拟定,今天发布。</a><span>2016-08-03</span></li>
                <li class="notification"><img src="images/classify.png" alt=""><a href="/latest-activities-details.html" class="bgc" target="_blank">最新安全法由人大常委会拟定,今天发布。</a><span>2016-08-03</span></li>-->
                </ul>
            </div>
            <div class="next-page clearfix">
                <ul class="clearfix">
                    <li><a href="">首页</a></li>
                    <li><a href="">上一页</a></li>
                    <li><a href="" class="one">1</a></li>
                    <li><a href="">2</a></li>
                    <li><a href="">3</a></li>
                    <li><a href="">4</a></li>
                    <li><a href="">5</a></li>
                    <li><a href="">下一页</a></li>
                    <li><a href="">末页</a></li>
                </ul>
            </div>
        </div>
    </div>
    <!--content---end-->
<link rel="import" href="footer.html?__inline">
<script type="text/javascript">
    var indexVm = avalon.define({
        $id: "noticesByType",
        data: [],
        strTime: function (time) {
            return dataStr(time);
        }
    });
    function getNoticeData() {
        var param = {
            pageCurrent: 1,
            pageSize: 3,
            NoticeType: 'activityNotice'
        };

        post("home/notice/getNoticesByType.do", param, function (data) {
            console.log(data);
            indexVm.data = data;
        }, function (msg) {
            console.log(msg);
        });
    }
    getNoticeData();

</script>
</body>
</html>